// sysconfig
package main

import (
	"github.com/c4pt0r/ini"
)

type SysConfig struct {
	zkAddress   string
	etcdAddress string
	zkWatchPath string
}

func NewSysconfig() *SysConfig {
	var conf = ini.NewConf("config.ini")
	zkAddress := conf.String("global", "zkAddress", "default")
	etcdAddress := conf.String("global", "etcdAddress", "default")
	zkWatchPath := conf.String("global", "zkWatchPath", "default")
	conf.Parse()
	//fmt.Println(*zkWatchPath)
	return &SysConfig{zkAddress: *zkAddress, etcdAddress: *etcdAddress, zkWatchPath: *zkWatchPath}

}
